<!-- 跳到顶部 -->
<template>
	<view class="top-icon" @tap="gotop()">
		
	</view>
</template>

<script>
	export default{
		methods:{
			gotop(){
				this.$emit('toTop')
			}
		}
	}
</script>

<style lang="scss">
	.top-icon{
		width: 50px;
		height: 50px;
		position: fixed;
		right: 32rpx;
		bottom: 120rpx;
		z-index: 200;
		color: #000000;
		font-size: 80rpx;
		opacity: 0.5;
		background-image: url(../../static/img/index/top.png);
	}
</style>
